.class public Lframent/FramentOrder2;
.super Landroid/support/v4/app/Fragment;
.source "FramentOrder2.java"


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "NewApi"
    }
.end annotation

.annotation build Landroid/annotation/TargetApi;
    value = 0xb
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lframent/FramentOrder2$GoodsAdapter;,
        Lframent/FramentOrder2$MyHolder;,
        Lframent/FramentOrder2$mOnclicliseter;
    }
.end annotation


# static fields
.field public static handler:Landroid/os/Handler;


# instance fields
.field private AnimationDuration:I

.field private adapter:Lframent/FramentOrder2$GoodsAdapter;

.field private anim_mask_layout:Landroid/view/ViewGroup;

.field private beans2:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private beans_guige:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private buyImg:Landroid/widget/ImageView;

.field private close:Landroid/widget/TextView;

.field private contentView:Landroid/view/View;

.field private context:Landroid/content/Context;

.field private cursor:Landroid/database/Cursor;

.field private cv:Landroid/content/ContentValues;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private del:Landroid/widget/TextView;

.field private goodsBeans:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private goodsstyles:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/ShoptypeBean;",
            ">;"
        }
    .end annotation
.end field

.field private goodsstyles2:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/ShoptypeBean;",
            ">;"
        }
    .end annotation
.end field

.field private gv_goodds:Landroid/widget/GridView;

.field private helper:Ldbclass/DBOpenHelper;

.field private horizontalstyle:Landroid/widget/HorizontalScrollView;

.field private imageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field private inflater:Landroid/view/LayoutInflater;

.field private list_cart:Landroid/widget/ListView;

.field private ll_pay:Landroid/widget/LinearLayout;

.field private lv_goodsstyle:Landroid/widget/ListView;

.field private m:Lmyapp/MyApp;

.field private noticd2:Landroid/widget/TextView;

.field private open:Ljava/lang/String;

.field private pupCarAdapter:Ldata/MarketPupCarAdapter;

.field private rl_shopbox:Landroid/widget/RelativeLayout;

.field private root_shoptype2:Landroid/widget/LinearLayout;

.field private shopid:Ljava/lang/String;

.field private shopnotice:Landroid/widget/TextView;

.field private shoptTypeAdapter2:Ldata/ShoptTypeAdapter2;

.field private shoptype2:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/ShoptypeBean;",
            ">;"
        }
    .end annotation
.end field

.field private shoptype2Views:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Landroid/view/View;",
            ">;"
        }
    .end annotation
.end field

.field private top:Landroid/widget/LinearLayout;

.field private total:Ljava/lang/String;

.field private tv_num:Lmyview/BadgeView;

.field private tv_ps:Landroid/widget/TextView;

.field private tv_total:Landroid/widget/TextView;

.field private view:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 80
    invoke-direct {p0}, Landroid/support/v4/app/Fragment;-><init>()V

    .line 115
    const-string v0, "0"

    iput-object v0, p0, Lframent/FramentOrder2;->shopid:Ljava/lang/String;

    .line 123
    const/16 v0, 0x320

    iput v0, p0, Lframent/FramentOrder2;->AnimationDuration:I

    .line 142
    const-string v0, ""

    iput-object v0, p0, Lframent/FramentOrder2;->open:Ljava/lang/String;

    .line 145
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lframent/FramentOrder2;->beans_guige:Ljava/util/List;

    .line 80
    return-void
.end method

.method static synthetic access$0(Lframent/FramentOrder2;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 142
    iget-object v0, p0, Lframent/FramentOrder2;->open:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$1(Lframent/FramentOrder2;)Landroid/widget/ListView;
    .locals 1

    .prologue
    .line 130
    iget-object v0, p0, Lframent/FramentOrder2;->list_cart:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic access$10(Lframent/FramentOrder2;)Ljava/util/ArrayList;
    .locals 1

    .prologue
    .line 120
    iget-object v0, p0, Lframent/FramentOrder2;->beans2:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$11(Lframent/FramentOrder2;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 82
    iget-object v0, p0, Lframent/FramentOrder2;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method static synthetic access$12(Lframent/FramentOrder2;)Lcom/nostra13/universalimageloader/core/ImageLoader;
    .locals 1

    .prologue
    .line 86
    iget-object v0, p0, Lframent/FramentOrder2;->imageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    return-object v0
.end method

.method static synthetic access$13(Lframent/FramentOrder2;Lbean/GoodsBean;)I
    .locals 1

    .prologue
    .line 953
    invoke-direct {p0, p1}, Lframent/FramentOrder2;->search(Lbean/GoodsBean;)I

    move-result v0

    return v0
.end method

.method static synthetic access$14(Lframent/FramentOrder2;)Landroid/view/View;
    .locals 1

    .prologue
    .line 96
    iget-object v0, p0, Lframent/FramentOrder2;->view:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$15(Lframent/FramentOrder2;I)V
    .locals 0

    .prologue
    .line 793
    invoke-direct {p0, p1}, Lframent/FramentOrder2;->addcart(I)V

    return-void
.end method

.method static synthetic access$16(Lframent/FramentOrder2;I)V
    .locals 0

    .prologue
    .line 872
    invoke-direct {p0, p1}, Lframent/FramentOrder2;->delcart(I)V

    return-void
.end method

.method static synthetic access$17(Lframent/FramentOrder2;)Ldata/ShoptTypeAdapter2;
    .locals 1

    .prologue
    .line 106
    iget-object v0, p0, Lframent/FramentOrder2;->shoptTypeAdapter2:Ldata/ShoptTypeAdapter2;

    return-object v0
.end method

.method static synthetic access$18(Lframent/FramentOrder2;)Ljava/util/ArrayList;
    .locals 1

    .prologue
    .line 107
    iget-object v0, p0, Lframent/FramentOrder2;->goodsstyles:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$19(Lframent/FramentOrder2;I)V
    .locals 0

    .prologue
    .line 629
    invoke-direct {p0, p1}, Lframent/FramentOrder2;->selectedGoodsType(I)V

    return-void
.end method

.method static synthetic access$2(Lframent/FramentOrder2;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 84
    iget-object v0, p0, Lframent/FramentOrder2;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$20(Lframent/FramentOrder2;)Ljava/util/ArrayList;
    .locals 1

    .prologue
    .line 112
    iget-object v0, p0, Lframent/FramentOrder2;->goodsBeans:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$21(Lframent/FramentOrder2;)Ljava/util/ArrayList;
    .locals 1

    .prologue
    .line 102
    iget-object v0, p0, Lframent/FramentOrder2;->shoptype2:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$22(Lframent/FramentOrder2;Lframent/FramentOrder2$GoodsAdapter;)V
    .locals 0

    .prologue
    .line 113
    iput-object p1, p0, Lframent/FramentOrder2;->adapter:Lframent/FramentOrder2$GoodsAdapter;

    return-void
.end method

.method static synthetic access$23(Lframent/FramentOrder2;)Landroid/widget/GridView;
    .locals 1

    .prologue
    .line 111
    iget-object v0, p0, Lframent/FramentOrder2;->gv_goodds:Landroid/widget/GridView;

    return-object v0
.end method

.method static synthetic access$24(Lframent/FramentOrder2;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 97
    iget-object v0, p0, Lframent/FramentOrder2;->shopnotice:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$25(Lframent/FramentOrder2;)Ljava/util/ArrayList;
    .locals 1

    .prologue
    .line 100
    iget-object v0, p0, Lframent/FramentOrder2;->goodsstyles2:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$26(Lframent/FramentOrder2;Landroid/widget/ImageView;)V
    .locals 0

    .prologue
    .line 122
    iput-object p1, p0, Lframent/FramentOrder2;->buyImg:Landroid/widget/ImageView;

    return-void
.end method

.method static synthetic access$27(Lframent/FramentOrder2;)Landroid/widget/ImageView;
    .locals 1

    .prologue
    .line 122
    iget-object v0, p0, Lframent/FramentOrder2;->buyImg:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$28(Lframent/FramentOrder2;Landroid/view/View;[I)V
    .locals 0

    .prologue
    .line 1073
    invoke-direct {p0, p1, p2}, Lframent/FramentOrder2;->setAnim(Landroid/view/View;[I)V

    return-void
.end method

.method static synthetic access$29(Lframent/FramentOrder2;)Landroid/widget/TextView;
    .locals 1

    .prologue
    .line 128
    iget-object v0, p0, Lframent/FramentOrder2;->noticd2:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$3(Lframent/FramentOrder2;)Ldata/MarketPupCarAdapter;
    .locals 1

    .prologue
    .line 131
    iget-object v0, p0, Lframent/FramentOrder2;->pupCarAdapter:Ldata/MarketPupCarAdapter;

    return-object v0
.end method

.method static synthetic access$30(Lframent/FramentOrder2;I)V
    .locals 0

    .prologue
    .line 835
    invoke-direct {p0, p1}, Lframent/FramentOrder2;->addcart2(I)V

    return-void
.end method

.method static synthetic access$31(Lframent/FramentOrder2;Lbean/GoodsBean;)V
    .locals 0

    .prologue
    .line 988
    invoke-direct {p0, p1}, Lframent/FramentOrder2;->addcart_guige(Lbean/GoodsBean;)V

    return-void
.end method

.method static synthetic access$32(Lframent/FramentOrder2;I)V
    .locals 0

    .prologue
    .line 899
    invoke-direct {p0, p1}, Lframent/FramentOrder2;->delcart2(I)V

    return-void
.end method

.method static synthetic access$33(Lframent/FramentOrder2;Lbean/GoodsBean;)V
    .locals 0

    .prologue
    .line 968
    invoke-direct {p0, p1}, Lframent/FramentOrder2;->delcart_guige(Lbean/GoodsBean;)V

    return-void
.end method

.method static synthetic access$34(Lframent/FramentOrder2;)Ljava/util/ArrayList;
    .locals 1

    .prologue
    .line 109
    iget-object v0, p0, Lframent/FramentOrder2;->shoptype2Views:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$4(Lframent/FramentOrder2;)Lmyview/BadgeView;
    .locals 1

    .prologue
    .line 125
    iget-object v0, p0, Lframent/FramentOrder2;->tv_num:Lmyview/BadgeView;

    return-object v0
.end method

.method static synthetic access$5(Lframent/FramentOrder2;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 115
    iget-object v0, p0, Lframent/FramentOrder2;->shopid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$6(Lframent/FramentOrder2;)Landroid/database/sqlite/SQLiteDatabase;
    .locals 1

    .prologue
    .line 89
    iget-object v0, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    return-object v0
.end method

.method static synthetic access$7(Lframent/FramentOrder2;)Lframent/FramentOrder2$GoodsAdapter;
    .locals 1

    .prologue
    .line 113
    iget-object v0, p0, Lframent/FramentOrder2;->adapter:Lframent/FramentOrder2$GoodsAdapter;

    return-object v0
.end method

.method static synthetic access$8(Lframent/FramentOrder2;)Ljava/util/List;
    .locals 1

    .prologue
    .line 593
    invoke-direct {p0}, Lframent/FramentOrder2;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$9(Lframent/FramentOrder2;)V
    .locals 0

    .prologue
    .line 924
    invoke-direct {p0}, Lframent/FramentOrder2;->searchCart()V

    return-void
.end method

.method private addViewToAnimLayout(Landroid/view/ViewGroup;Landroid/view/View;[I)Landroid/view/View;
    .locals 5
    .param p1, "vg"    # Landroid/view/ViewGroup;
    .param p2, "view"    # Landroid/view/View;
    .param p3, "location"    # [I

    .prologue
    const/4 v4, -0x2

    .line 1152
    const/4 v3, 0x0

    aget v1, p3, v3

    .line 1153
    .local v1, "x":I
    const/4 v3, 0x1

    aget v2, p3, v3

    .line 1154
    .local v2, "y":I
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v4, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 1157
    .local v0, "lp":Landroid/widget/LinearLayout$LayoutParams;
    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    .line 1158
    iput v2, v0, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    .line 1159
    invoke-virtual {p2, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 1160
    return-object p2
.end method

.method private addcart(I)V
    .locals 10
    .param p1, "index"    # I

    .prologue
    const/4 v9, 0x3

    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 794
    iget-object v3, p0, Lframent/FramentOrder2;->beans2:Ljava/util/ArrayList;

    invoke-virtual {v3, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/GoodsBean;

    .line 795
    .local v0, "bean":Lbean/GoodsBean;
    invoke-direct {p0, v0}, Lframent/FramentOrder2;->search(Lbean/GoodsBean;)I

    move-result v1

    .line 800
    .local v1, "count":I
    invoke-virtual {v0}, Lbean/GoodsBean;->getcounts()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    if-lt v1, v3, :cond_0

    .line 802
    iget-object v3, p0, Lframent/FramentOrder2;->context:Landroid/content/Context;

    const v4, 0x7f09009a

    invoke-static {v3, v4, v7}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Toast;->show()V

    .line 826
    :goto_0
    return-void

    .line 807
    :cond_0
    if-nez v1, :cond_1

    .line 808
    const/4 v1, 0x1

    .line 809
    iget-object v3, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "insert into cart (shopid,goodsid,goodsname,goodscount,goodscost,pnum,type) values(?,?,?,?,?,?,?)"

    .line 810
    const/4 v5, 0x7

    new-array v5, v5, [Ljava/lang/Object;

    iget-object v6, p0, Lframent/FramentOrder2;->shopid:Ljava/lang/String;

    aput-object v6, v5, v7

    invoke-virtual {v0}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v5, v8

    const/4 v6, 0x2

    invoke-virtual {v0}, Lbean/GoodsBean;->getname()Ljava/lang/String;

    move-result-object v7

    aput-object v7, v5, v6

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aput-object v6, v5, v9

    const/4 v6, 0x4

    invoke-virtual {v0}, Lbean/GoodsBean;->getcost()F

    move-result v7

    invoke-static {v7}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v7

    aput-object v7, v5, v6

    const/4 v6, 0x5

    const-string v7, "0"

    aput-object v7, v5, v6

    const/4 v6, 0x6

    const-string v7, "0"

    aput-object v7, v5, v6

    .line 809
    invoke-virtual {v3, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 818
    :goto_1
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 819
    .local v2, "message":Landroid/os/Message;
    iput v9, v2, Landroid/os/Message;->arg1:I

    .line 820
    iput v8, v2, Landroid/os/Message;->arg2:I

    .line 821
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    iput-object v3, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 822
    sget-object v3, Lframent/FramentOrder2;->handler:Landroid/os/Handler;

    invoke-virtual {v3, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 823
    iget-object v3, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    invoke-virtual {v3}, Landroid/content/ContentValues;->clear()V

    goto :goto_0

    .line 813
    .end local v2    # "message":Landroid/os/Message;
    :cond_1
    add-int/lit8 v1, v1, 0x1

    .line 814
    iget-object v3, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    const-string v4, "goodscount"

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 815
    iget-object v3, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "cart"

    iget-object v5, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "goodsid = \'"

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "\'"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    const/4 v7, 0x0

    invoke-virtual {v3, v4, v5, v6, v7}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    goto :goto_1
.end method

.method private addcart2(I)V
    .locals 7
    .param p1, "index"    # I

    .prologue
    const/4 v6, 0x0

    .line 837
    iget-object v2, p0, Lframent/FramentOrder2;->goodsBeans:Ljava/util/ArrayList;

    invoke-virtual {v2, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/GoodsBean;

    .line 838
    .local v0, "bean":Lbean/GoodsBean;
    invoke-direct {p0, v0}, Lframent/FramentOrder2;->search(Lbean/GoodsBean;)I

    move-result v1

    .line 843
    .local v1, "count":I
    invoke-virtual {v0}, Lbean/GoodsBean;->getcounts()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    if-lt v1, v2, :cond_0

    .line 845
    iget-object v2, p0, Lframent/FramentOrder2;->context:Landroid/content/Context;

    const v3, 0x7f09009a

    invoke-static {v2, v3, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    .line 868
    :goto_0
    return-void

    .line 850
    :cond_0
    if-nez v1, :cond_1

    .line 851
    const/4 v1, 0x1

    .line 852
    iget-object v2, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v3, "insert into cart (shopid,goodsid,goodsname,goodscount,goodscost,pnum,type) values(?,?,?,?,?,?,?)"

    .line 853
    const/4 v4, 0x7

    new-array v4, v4, [Ljava/lang/Object;

    iget-object v5, p0, Lframent/FramentOrder2;->shopid:Ljava/lang/String;

    aput-object v5, v4, v6

    const/4 v5, 0x1

    invoke-virtual {v0}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v4, v5

    const/4 v5, 0x2

    invoke-virtual {v0}, Lbean/GoodsBean;->getname()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v4, v5

    const/4 v5, 0x3

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aput-object v6, v4, v5

    const/4 v5, 0x4

    invoke-virtual {v0}, Lbean/GoodsBean;->getcost()F

    move-result v6

    invoke-static {v6}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v6

    aput-object v6, v4, v5

    const/4 v5, 0x5

    const-string v6, "0"

    aput-object v6, v4, v5

    const/4 v5, 0x6

    const-string v6, "0"

    aput-object v6, v4, v5

    .line 852
    invoke-virtual {v2, v3, v4}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 861
    :goto_1
    iget-object v2, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    invoke-virtual {v2}, Landroid/content/ContentValues;->clear()V

    .line 863
    iget-object v2, p0, Lframent/FramentOrder2;->pupCarAdapter:Ldata/MarketPupCarAdapter;

    invoke-direct {p0}, Lframent/FramentOrder2;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v3

    invoke-virtual {v2, v3}, Ldata/MarketPupCarAdapter;->setList(Ljava/util/List;)V

    .line 864
    iget-object v2, p0, Lframent/FramentOrder2;->pupCarAdapter:Ldata/MarketPupCarAdapter;

    invoke-virtual {v2}, Ldata/MarketPupCarAdapter;->notifyDataSetChanged()V

    .line 865
    invoke-direct {p0}, Lframent/FramentOrder2;->searchCart()V

    goto :goto_0

    .line 856
    :cond_1
    add-int/lit8 v1, v1, 0x1

    .line 857
    iget-object v2, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    const-string v3, "goodscount"

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 858
    iget-object v2, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v3, "cart"

    iget-object v4, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "goodsid = \'"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\'"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    const/4 v6, 0x0

    invoke-virtual {v2, v3, v4, v5, v6}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    goto :goto_1
.end method

.method private addcart_guige(Lbean/GoodsBean;)V
    .locals 6
    .param p1, "bean"    # Lbean/GoodsBean;

    .prologue
    .line 990
    invoke-direct {p0, p1}, Lframent/FramentOrder2;->search_guige(Lbean/GoodsBean;)I

    move-result v0

    .line 992
    .local v0, "count":I
    if-lez v0, :cond_0

    .line 993
    add-int/lit8 v0, v0, 0x1

    .line 994
    iget-object v1, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    const-string v2, "pnum"

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 996
    const-string v1, "-----------guigeid"

    invoke-virtual {p1}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 998
    iget-object v1, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v2, "cart"

    iget-object v3, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "pid = \'"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\'"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 1001
    :cond_0
    iget-object v1, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    invoke-virtual {v1}, Landroid/content/ContentValues;->clear()V

    .line 1004
    return-void
.end method

.method private createAnimLayout()Landroid/view/ViewGroup;
    .locals 5

    .prologue
    const/4 v4, -0x1

    .line 1138
    invoke-virtual {p0}, Lframent/FramentOrder2;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v3

    invoke-virtual {v3}, Landroid/support/v4/app/FragmentActivity;->getWindow()Landroid/view/Window;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/view/ViewGroup;

    .line 1139
    .local v2, "rootView":Landroid/view/ViewGroup;
    new-instance v0, Landroid/widget/LinearLayout;

    iget-object v3, p0, Lframent/FramentOrder2;->context:Landroid/content/Context;

    invoke-direct {v0, v3}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 1140
    .local v0, "animLayout":Landroid/widget/LinearLayout;
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v1, v4, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 1143
    .local v1, "lp":Landroid/widget/LinearLayout$LayoutParams;
    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 1144
    const v3, 0x7fffffff

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setId(I)V

    .line 1145
    const v3, 0x106000d

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 1146
    invoke-virtual {v2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 1147
    return-object v0
.end method

.method private delcart(I)V
    .locals 9
    .param p1, "index"    # I

    .prologue
    const/4 v8, 0x0

    .line 874
    iget-object v3, p0, Lframent/FramentOrder2;->beans2:Ljava/util/ArrayList;

    invoke-virtual {v3, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/GoodsBean;

    .line 875
    .local v0, "bean":Lbean/GoodsBean;
    invoke-direct {p0, v0}, Lframent/FramentOrder2;->search(Lbean/GoodsBean;)I

    move-result v1

    .line 876
    .local v1, "count":I
    const/4 v3, 0x1

    if-le v1, v3, :cond_0

    .line 877
    add-int/lit8 v1, v1, -0x1

    .line 878
    iget-object v3, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    const-string v4, "goodscount"

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 879
    iget-object v3, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "cart"

    iget-object v5, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "goodsid = \'"

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "\'"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v3, v4, v5, v6, v8}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 886
    :goto_0
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 887
    .local v2, "message":Landroid/os/Message;
    const/4 v3, 0x3

    iput v3, v2, Landroid/os/Message;->arg1:I

    .line 888
    const/4 v3, 0x0

    iput v3, v2, Landroid/os/Message;->arg2:I

    .line 889
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    iput-object v3, v2, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 890
    sget-object v3, Lframent/FramentOrder2;->handler:Landroid/os/Handler;

    invoke-virtual {v3, v2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 891
    iget-object v3, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    invoke-virtual {v3}, Landroid/content/ContentValues;->clear()V

    .line 894
    return-void

    .line 882
    .end local v2    # "message":Landroid/os/Message;
    :cond_0
    iget-object v3, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "cart"

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "goodsid = \'"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\'"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v4, v5, v8}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    goto :goto_0
.end method

.method private delcart2(I)V
    .locals 8
    .param p1, "index"    # I

    .prologue
    const/4 v7, 0x0

    .line 901
    iget-object v2, p0, Lframent/FramentOrder2;->goodsBeans:Ljava/util/ArrayList;

    invoke-virtual {v2, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/GoodsBean;

    .line 902
    .local v0, "bean":Lbean/GoodsBean;
    invoke-direct {p0, v0}, Lframent/FramentOrder2;->search(Lbean/GoodsBean;)I

    move-result v1

    .line 903
    .local v1, "count":I
    const/4 v2, 0x1

    if-le v1, v2, :cond_0

    .line 904
    add-int/lit8 v1, v1, -0x1

    .line 905
    iget-object v2, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    const-string v3, "goodscount"

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 906
    iget-object v2, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v3, "cart"

    iget-object v4, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "goodsid = \'"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\'"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v3, v4, v5, v7}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 913
    :goto_0
    iget-object v2, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    invoke-virtual {v2}, Landroid/content/ContentValues;->clear()V

    .line 916
    iget-object v2, p0, Lframent/FramentOrder2;->pupCarAdapter:Ldata/MarketPupCarAdapter;

    invoke-direct {p0}, Lframent/FramentOrder2;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v3

    invoke-virtual {v2, v3}, Ldata/MarketPupCarAdapter;->setList(Ljava/util/List;)V

    .line 917
    iget-object v2, p0, Lframent/FramentOrder2;->pupCarAdapter:Ldata/MarketPupCarAdapter;

    invoke-virtual {v2}, Ldata/MarketPupCarAdapter;->notifyDataSetChanged()V

    .line 918
    invoke-direct {p0}, Lframent/FramentOrder2;->searchCart()V

    .line 920
    return-void

    .line 909
    :cond_0
    iget-object v2, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v3, "cart"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "goodsid = \'"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\'"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4, v7}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    goto :goto_0
.end method

.method private delcart_guige(Lbean/GoodsBean;)V
    .locals 7
    .param p1, "bean"    # Lbean/GoodsBean;

    .prologue
    const/4 v6, 0x0

    .line 971
    invoke-direct {p0, p1}, Lframent/FramentOrder2;->search_guige(Lbean/GoodsBean;)I

    move-result v0

    .line 972
    .local v0, "count":I
    const/4 v1, 0x1

    if-le v0, v1, :cond_0

    .line 973
    add-int/lit8 v0, v0, -0x1

    .line 974
    iget-object v1, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    const-string v2, "pnum"

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 975
    iget-object v1, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v2, "cart"

    iget-object v3, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "pid = \'"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\'"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v2, v3, v4, v6}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    .line 981
    :goto_0
    iget-object v1, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    invoke-virtual {v1}, Landroid/content/ContentValues;->clear()V

    .line 984
    return-void

    .line 978
    :cond_0
    iget-object v1, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    const-string v2, "cart"

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "pid = \'"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\'"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3, v6}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    goto :goto_0
.end method

.method private getAllGoodsBeanList()Ljava/util/List;
    .locals 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation

    .prologue
    .line 594
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 596
    .local v0, "GoodsBeans":Ljava/util/List;, "Ljava/util/List<Lbean/GoodsBean;>;"
    iget-object v10, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    new-instance v11, Ljava/lang/StringBuilder;

    const-string v12, "select * from cart where shopid="

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v12, p0, Lframent/FramentOrder2;->shopid:Ljava/lang/String;

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    const/4 v12, 0x0

    invoke-virtual {v10, v11, v12}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v10

    iput-object v10, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    .line 598
    :goto_0
    iget-object v10, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    invoke-interface {v10}, Landroid/database/Cursor;->moveToNext()Z

    move-result v10

    if-nez v10, :cond_0

    .line 623
    iget-object v10, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    invoke-interface {v10}, Landroid/database/Cursor;->close()V

    .line 625
    return-object v0

    .line 599
    :cond_0
    new-instance v4, Lbean/GoodsBean;

    invoke-direct {v4}, Lbean/GoodsBean;-><init>()V

    .line 600
    .local v4, "goodsBean":Lbean/GoodsBean;
    iget-object v10, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v11, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v12, "goodsid"

    invoke-interface {v11, v12}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v11

    invoke-interface {v10, v11}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 601
    .local v3, "goodid":Ljava/lang/String;
    iget-object v10, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v11, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v12, "shopid"

    invoke-interface {v11, v12}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v11

    invoke-interface {v10, v11}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v8

    .line 602
    .local v8, "shopid":Ljava/lang/String;
    iget-object v10, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v11, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v12, "goodsname"

    invoke-interface {v11, v12}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v11

    invoke-interface {v10, v11}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v6

    .line 603
    .local v6, "goodsname":Ljava/lang/String;
    iget-object v10, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v11, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v12, "goodscount"

    invoke-interface {v11, v12}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v11

    invoke-interface {v10, v11}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 604
    .local v1, "count":Ljava/lang/String;
    iget-object v10, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v11, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v12, "goodscost"

    invoke-interface {v11, v12}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v11

    invoke-interface {v10, v11}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v5

    .line 605
    .local v5, "goodscost":Ljava/lang/String;
    iget-object v10, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v11, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v12, "pid"

    invoke-interface {v11, v12}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v11

    invoke-interface {v10, v11}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v7

    .line 606
    .local v7, "pid":Ljava/lang/String;
    iget-object v10, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v11, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v12, "pnum"

    invoke-interface {v11, v12}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v11

    invoke-interface {v10, v11}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    .line 607
    .local v2, "ggnum":Ljava/lang/String;
    iget-object v10, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v11, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v12, "type"

    invoke-interface {v11, v12}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v11

    invoke-interface {v10, v11}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    .line 610
    .local v9, "type":Ljava/lang/String;
    const-string v10, "goodsid shopid goodsname goodscount goodscost pid pnum :"

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v12

    invoke-direct {v11, v12}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v12, "|"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "|"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "|"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "|"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "|"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    const-string v12, "|"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {v10, v11}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 612
    invoke-virtual {v4, v3}, Lbean/GoodsBean;->setId(Ljava/lang/String;)V

    .line 613
    invoke-virtual {v4, v8}, Lbean/GoodsBean;->setShopid(Ljava/lang/String;)V

    .line 614
    invoke-virtual {v4, v6}, Lbean/GoodsBean;->setname(Ljava/lang/String;)V

    .line 615
    invoke-virtual {v4, v1}, Lbean/GoodsBean;->setcounts(Ljava/lang/String;)V

    .line 616
    invoke-static {v5}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Float;->floatValue()F

    move-result v10

    invoke-virtual {v4, v10}, Lbean/GoodsBean;->setcost(F)V

    .line 617
    invoke-virtual {v4, v7}, Lbean/GoodsBean;->setGgid(Ljava/lang/String;)V

    .line 618
    invoke-virtual {v4, v2}, Lbean/GoodsBean;->setGgnum(Ljava/lang/String;)V

    .line 619
    invoke-virtual {v4, v9}, Lbean/GoodsBean;->setHave_det(Ljava/lang/String;)V

    .line 620
    invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_0
.end method

.method private getData()V
    .locals 2

    .prologue
    .line 740
    iget-object v0, p0, Lframent/FramentOrder2;->context:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lmyapp/MyApp;

    iput-object v0, p0, Lframent/FramentOrder2;->m:Lmyapp/MyApp;

    .line 742
    invoke-virtual {p0}, Lframent/FramentOrder2;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "shopid"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lframent/FramentOrder2;->shopid:Ljava/lang/String;

    .line 743
    invoke-virtual {p0}, Lframent/FramentOrder2;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "xiuxi"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lframent/FramentOrder2;->open:Ljava/lang/String;

    .line 746
    new-instance v0, Ldbclass/DBOpenHelper;

    invoke-virtual {p0}, Lframent/FramentOrder2;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    invoke-direct {v0, v1}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lframent/FramentOrder2;->helper:Ldbclass/DBOpenHelper;

    .line 747
    iget-object v0, p0, Lframent/FramentOrder2;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    iput-object v0, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 749
    iget-object v0, p0, Lframent/FramentOrder2;->m:Lmyapp/MyApp;

    invoke-virtual {v0}, Lmyapp/MyApp;->getInstance()Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v0

    iput-object v0, p0, Lframent/FramentOrder2;->imageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    .line 752
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    iput-object v0, p0, Lframent/FramentOrder2;->cv:Landroid/content/ContentValues;

    .line 753
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lframent/FramentOrder2;->goodsstyles:Ljava/util/ArrayList;

    .line 754
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lframent/FramentOrder2;->goodsstyles2:Ljava/util/ArrayList;

    .line 755
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lframent/FramentOrder2;->shoptype2:Ljava/util/ArrayList;

    .line 756
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lframent/FramentOrder2;->shoptype2Views:Ljava/util/ArrayList;

    .line 758
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lframent/FramentOrder2;->goodsBeans:Ljava/util/ArrayList;

    .line 760
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lframent/FramentOrder2;->beans2:Ljava/util/ArrayList;

    .line 762
    return-void
.end method

.method private getShopResource()V
    .locals 2

    .prologue
    .line 712
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lframent/FramentOrder2$4;

    invoke-direct {v1, p0}, Lframent/FramentOrder2$4;-><init>(Lframent/FramentOrder2;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 732
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 736
    return-void
.end method

.method private initView()V
    .locals 5

    .prologue
    const v4, 0x7f0c01b1

    .line 766
    iget-object v1, p0, Lframent/FramentOrder2;->view:Landroid/view/View;

    const v2, 0x7f0c01a0

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/HorizontalScrollView;

    iput-object v1, p0, Lframent/FramentOrder2;->horizontalstyle:Landroid/widget/HorizontalScrollView;

    .line 768
    iget-object v1, p0, Lframent/FramentOrder2;->horizontalstyle:Landroid/widget/HorizontalScrollView;

    const v2, 0x7f0c01bb

    invoke-virtual {v1, v2}, Landroid/widget/HorizontalScrollView;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    iput-object v1, p0, Lframent/FramentOrder2;->root_shoptype2:Landroid/widget/LinearLayout;

    .line 769
    iget-object v1, p0, Lframent/FramentOrder2;->view:Landroid/view/View;

    const v2, 0x7f0c01ba

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    iput-object v1, p0, Lframent/FramentOrder2;->lv_goodsstyle:Landroid/widget/ListView;

    .line 770
    iget-object v1, p0, Lframent/FramentOrder2;->view:Landroid/view/View;

    const v2, 0x7f0c01bc

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/GridView;

    iput-object v1, p0, Lframent/FramentOrder2;->gv_goodds:Landroid/widget/GridView;

    .line 771
    iget-object v1, p0, Lframent/FramentOrder2;->gv_goodds:Landroid/widget/GridView;

    new-instance v2, Landroid/graphics/drawable/ColorDrawable;

    const/4 v3, 0x0

    invoke-direct {v2, v3}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {v1, v2}, Landroid/widget/GridView;->setSelector(Landroid/graphics/drawable/Drawable;)V

    .line 772
    iget-object v1, p0, Lframent/FramentOrder2;->view:Landroid/view/View;

    invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lframent/FramentOrder2;->shopnotice:Landroid/widget/TextView;

    .line 773
    iget-object v1, p0, Lframent/FramentOrder2;->view:Landroid/view/View;

    const v2, 0x7f0c01bf

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lmyview/BadgeView;

    iput-object v1, p0, Lframent/FramentOrder2;->tv_num:Lmyview/BadgeView;

    .line 774
    iget-object v1, p0, Lframent/FramentOrder2;->view:Landroid/view/View;

    const v2, 0x7f0c0049

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lframent/FramentOrder2;->tv_total:Landroid/widget/TextView;

    .line 775
    iget-object v1, p0, Lframent/FramentOrder2;->view:Landroid/view/View;

    invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lframent/FramentOrder2;->noticd2:Landroid/widget/TextView;

    .line 776
    iget-object v1, p0, Lframent/FramentOrder2;->view:Landroid/view/View;

    const v2, 0x7f0c01bd

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    iput-object v1, p0, Lframent/FramentOrder2;->list_cart:Landroid/widget/ListView;

    .line 778
    iget-object v1, p0, Lframent/FramentOrder2;->view:Landroid/view/View;

    const v2, 0x7f0c01be

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lframent/FramentOrder2;->tv_ps:Landroid/widget/TextView;

    .line 780
    iget-object v1, p0, Lframent/FramentOrder2;->context:Landroid/content/Context;

    const v2, 0x7f0300ba

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 781
    .local v0, "dishes_particular_top":Landroid/view/View;
    iget-object v1, p0, Lframent/FramentOrder2;->list_cart:Landroid/widget/ListView;

    invoke-virtual {v1, v0}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 782
    const v1, 0x7f0c036d

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lframent/FramentOrder2;->del:Landroid/widget/TextView;

    .line 783
    const v1, 0x7f0c00a8

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lframent/FramentOrder2;->close:Landroid/widget/TextView;

    .line 786
    iget-object v1, p0, Lframent/FramentOrder2;->view:Landroid/view/View;

    const v2, 0x7f0c01a6

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout;

    iput-object v1, p0, Lframent/FramentOrder2;->rl_shopbox:Landroid/widget/RelativeLayout;

    .line 787
    iget-object v1, p0, Lframent/FramentOrder2;->view:Landroid/view/View;

    const v2, 0x7f0c007a

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    iput-object v1, p0, Lframent/FramentOrder2;->ll_pay:Landroid/widget/LinearLayout;

    .line 789
    return-void
.end method

.method private search(Lbean/GoodsBean;)I
    .locals 4
    .param p1, "bean"    # Lbean/GoodsBean;

    .prologue
    .line 954
    const/4 v0, 0x0

    .line 955
    .local v0, "goodscount":I
    iget-object v1, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 956
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "select * from cart where goodsid="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    .line 955
    invoke-virtual {v1, v2, v3}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    iput-object v1, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    .line 957
    iget-object v1, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    invoke-interface {v1}, Landroid/database/Cursor;->getCount()I

    move-result v1

    if-lez v1, :cond_0

    .line 958
    :goto_0
    iget-object v1, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    invoke-interface {v1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v1

    if-nez v1, :cond_1

    .line 962
    :cond_0
    iget-object v1, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    .line 963
    return v0

    .line 959
    :cond_1
    iget-object v1, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v2, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v3, "goodscount"

    invoke-interface {v2, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {v1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    goto :goto_0
.end method

.method private searchCart()V
    .locals 8

    .prologue
    const/high16 v7, 0x42c80000    # 100.0f

    .line 926
    iget-object v3, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "select * from cart where shopid="

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v5, p0, Lframent/FramentOrder2;->shopid:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v3

    iput-object v3, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    .line 928
    const/4 v1, 0x0

    .line 929
    .local v1, "sumcart":I
    const/4 v2, 0x0

    .line 931
    .local v2, "total":F
    iget-object v3, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->getCount()I

    move-result v3

    if-lez v3, :cond_0

    .line 932
    :goto_0
    iget-object v3, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->moveToNext()Z

    move-result v3

    if-nez v3, :cond_1

    .line 940
    :cond_0
    iget-object v3, p0, Lframent/FramentOrder2;->tv_num:Lmyview/BadgeView;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lmyview/BadgeView;->setText(Ljava/lang/CharSequence;)V

    .line 941
    iget-object v3, p0, Lframent/FramentOrder2;->tv_total:Landroid/widget/TextView;

    new-instance v4, Ljava/lang/StringBuilder;

    mul-float v5, v2, v7

    invoke-static {v5}, Ljava/lang/Math;->round(F)I

    move-result v5

    int-to-float v5, v5

    div-float/2addr v5, v7

    invoke-static {v5}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 943
    iget-object v3, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->close()V

    .line 946
    return-void

    .line 933
    :cond_1
    iget-object v3, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v4, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v5, "goodscost"

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    invoke-interface {v3, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 934
    .local v0, "cost":Ljava/lang/String;
    iget-object v3, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v4, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v5, "pnum"

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    invoke-interface {v3, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    iget-object v4, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v5, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v6, "goodscount"

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v5

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    add-int/2addr v3, v4

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    add-int/2addr v1, v3

    .line 935
    iget-object v3, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v4, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v5, "pnum"

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v4

    invoke-interface {v3, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    iget-object v4, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v5, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v6, "goodscount"

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v5

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    add-int/2addr v3, v4

    int-to-float v3, v3

    invoke-static {v3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Float;->floatValue()F

    move-result v3

    invoke-static {v0}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Float;->floatValue()F

    move-result v4

    mul-float/2addr v3, v4

    add-float/2addr v2, v3

    goto/16 :goto_0
.end method

.method private search_guige(Lbean/GoodsBean;)I
    .locals 4
    .param p1, "bean"    # Lbean/GoodsBean;

    .prologue
    .line 1011
    const/4 v0, 0x0

    .line 1013
    .local v0, "goodscount":I
    iget-object v1, p0, Lframent/FramentOrder2;->db:Landroid/database/sqlite/SQLiteDatabase;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "select * from cart where pid="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Lbean/GoodsBean;->getGgid()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    iput-object v1, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    .line 1014
    iget-object v1, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    invoke-interface {v1}, Landroid/database/Cursor;->getCount()I

    move-result v1

    if-lez v1, :cond_0

    .line 1015
    :goto_0
    iget-object v1, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    invoke-interface {v1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v1

    if-nez v1, :cond_1

    .line 1021
    :cond_0
    iget-object v1, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    .line 1023
    return v0

    .line 1017
    :cond_1
    const-string v1, "cursor======"

    iget-object v2, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1018
    iget-object v1, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    iget-object v2, p0, Lframent/FramentOrder2;->cursor:Landroid/database/Cursor;

    const-string v3, "pnum"

    invoke-interface {v2, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {v1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    goto :goto_0
.end method

.method private selectedGoodsType(I)V
    .locals 7
    .param p1, "index"    # I

    .prologue
    .line 631
    iget-object v4, p0, Lframent/FramentOrder2;->shoptype2:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->clear()V

    .line 632
    iget-object v4, p0, Lframent/FramentOrder2;->root_shoptype2:Landroid/widget/LinearLayout;

    invoke-virtual {v4}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 634
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v4, p0, Lframent/FramentOrder2;->goodsstyles2:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lt v0, v4, :cond_0

    .line 642
    const/4 v1, 0x0

    .local v1, "j":I
    :goto_1
    iget-object v4, p0, Lframent/FramentOrder2;->shoptype2:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-lt v1, v4, :cond_2

    .line 707
    return-void

    .line 636
    .end local v1    # "j":I
    :cond_0
    iget-object v4, p0, Lframent/FramentOrder2;->goodsstyles2:Ljava/util/ArrayList;

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lbean/ShoptypeBean;

    invoke-virtual {v4}, Lbean/ShoptypeBean;->getParent_id()Ljava/lang/String;

    move-result-object v5

    iget-object v4, p0, Lframent/FramentOrder2;->goodsstyles:Ljava/util/ArrayList;

    invoke-virtual {v4, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lbean/ShoptypeBean;

    invoke-virtual {v4}, Lbean/ShoptypeBean;->getId()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 637
    iget-object v5, p0, Lframent/FramentOrder2;->shoptype2:Ljava/util/ArrayList;

    iget-object v4, p0, Lframent/FramentOrder2;->goodsstyles2:Ljava/util/ArrayList;

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lbean/ShoptypeBean;

    invoke-virtual {v5, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 634
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 644
    .restart local v1    # "j":I
    :cond_2
    iget-object v4, p0, Lframent/FramentOrder2;->inflater:Landroid/view/LayoutInflater;

    const v5, 0x7f03006d

    const/4 v6, 0x0

    invoke-virtual {v4, v5, v6}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 645
    .local v2, "rootView":Landroid/view/View;
    const v4, 0x7f0c0281

    invoke-virtual {v2, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 646
    .local v3, "textView":Landroid/widget/TextView;
    if-nez v1, :cond_4

    .line 647
    iget-object v4, p0, Lframent/FramentOrder2;->context:Landroid/content/Context;

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f020090

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setBackground(Landroid/graphics/drawable/Drawable;)V

    .line 648
    iget-object v4, p0, Lframent/FramentOrder2;->shoptype2:Ljava/util/ArrayList;

    invoke-virtual {v4, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lbean/ShoptypeBean;

    invoke-virtual {v4}, Lbean/ShoptypeBean;->getname()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 649
    iget-object v4, p0, Lframent/FramentOrder2;->m:Lmyapp/MyApp;

    invoke-virtual {v4}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v4

    const-string v5, "1"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_3

    .line 650
    iget-object v4, p0, Lframent/FramentOrder2;->context:Landroid/content/Context;

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f07001f

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextColor(I)V

    .line 660
    :goto_2
    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v2, v4}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 661
    new-instance v4, Lframent/FramentOrder2$3;

    invoke-direct {v4, p0, v2}, Lframent/FramentOrder2$3;-><init>(Lframent/FramentOrder2;Landroid/view/View;)V

    invoke-virtual {v2, v4}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 702
    iget-object v4, p0, Lframent/FramentOrder2;->shoptype2Views:Ljava/util/ArrayList;

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 703
    iget-object v4, p0, Lframent/FramentOrder2;->root_shoptype2:Landroid/widget/LinearLayout;

    invoke-virtual {v4, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 642
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_1

    .line 652
    :cond_3
    iget-object v4, p0, Lframent/FramentOrder2;->context:Landroid/content/Context;

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f070001

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_2

    .line 657
    :cond_4
    iget-object v4, p0, Lframent/FramentOrder2;->shoptype2:Ljava/util/ArrayList;

    invoke-virtual {v4, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lbean/ShoptypeBean;

    invoke-virtual {v4}, Lbean/ShoptypeBean;->getname()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_2
.end method

.method private setAnim(Landroid/view/View;[I)V
    .locals 19
    .param p1, "v"    # Landroid/view/View;
    .param p2, "start_location"    # [I

    .prologue
    .line 1075
    new-instance v3, Landroid/view/animation/ScaleAnimation;

    const/high16 v4, 0x3f000000    # 0.5f

    const/high16 v5, 0x3fc00000    # 1.5f

    const/high16 v6, 0x3f000000    # 0.5f

    const/high16 v7, 0x3fc00000    # 1.5f

    const/4 v8, 0x1

    const/high16 v9, 0x3f000000    # 0.5f

    const/4 v10, 0x1

    const/high16 v11, 0x3f000000    # 0.5f

    invoke-direct/range {v3 .. v11}, Landroid/view/animation/ScaleAnimation;-><init>(FFFFIFIF)V

    .line 1076
    .local v3, "mScaleAnimation":Landroid/view/animation/Animation;
    move-object/from16 v0, p0

    iget v4, v0, Lframent/FramentOrder2;->AnimationDuration:I

    int-to-long v4, v4

    invoke-virtual {v3, v4, v5}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 1077
    const/4 v4, 0x1

    invoke-virtual {v3, v4}, Landroid/view/animation/Animation;->setFillAfter(Z)V

    .line 1079
    const/4 v4, 0x0

    move-object/from16 v0, p0

    iput-object v4, v0, Lframent/FramentOrder2;->anim_mask_layout:Landroid/view/ViewGroup;

    .line 1080
    invoke-direct/range {p0 .. p0}, Lframent/FramentOrder2;->createAnimLayout()Landroid/view/ViewGroup;

    move-result-object v4

    move-object/from16 v0, p0

    iput-object v4, v0, Lframent/FramentOrder2;->anim_mask_layout:Landroid/view/ViewGroup;

    .line 1081
    move-object/from16 v0, p0

    iget-object v4, v0, Lframent/FramentOrder2;->anim_mask_layout:Landroid/view/ViewGroup;

    move-object/from16 v0, p1

    invoke-virtual {v4, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 1082
    move-object/from16 v0, p0

    iget-object v4, v0, Lframent/FramentOrder2;->anim_mask_layout:Landroid/view/ViewGroup;

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p2

    invoke-direct {v0, v4, v1, v2}, Lframent/FramentOrder2;->addViewToAnimLayout(Landroid/view/ViewGroup;Landroid/view/View;[I)Landroid/view/View;

    move-result-object v18

    .line 1084
    .local v18, "view":Landroid/view/View;
    const/4 v4, 0x2

    new-array v14, v4, [I

    .line 1085
    .local v14, "end_location":[I
    move-object/from16 v0, p0

    iget-object v4, v0, Lframent/FramentOrder2;->tv_num:Lmyview/BadgeView;

    invoke-virtual {v4, v14}, Lmyview/BadgeView;->getLocationInWindow([I)V

    .line 1088
    const/4 v4, 0x0

    aget v4, v14, v4

    const/4 v5, 0x0

    aget v5, p2, v5

    sub-int v12, v4, v5

    .line 1089
    .local v12, "endX":I
    const/4 v4, 0x1

    aget v4, v14, v4

    const/4 v5, 0x1

    aget v5, p2, v5

    sub-int v13, v4, v5

    .line 1090
    .local v13, "endY":I
    new-instance v16, Landroid/view/animation/TranslateAnimation;

    const/4 v4, 0x0

    .line 1091
    int-to-float v5, v12

    const/4 v6, 0x0

    const/4 v7, 0x0

    .line 1090
    move-object/from16 v0, v16

    invoke-direct {v0, v4, v5, v6, v7}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V

    .line 1092
    .local v16, "translateAnimationX":Landroid/view/animation/TranslateAnimation;
    new-instance v4, Landroid/view/animation/LinearInterpolator;

    invoke-direct {v4}, Landroid/view/animation/LinearInterpolator;-><init>()V

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 1093
    const/4 v4, 0x0

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setRepeatCount(I)V

    .line 1094
    const/4 v4, 0x1

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setFillAfter(Z)V

    .line 1096
    new-instance v17, Landroid/view/animation/TranslateAnimation;

    const/4 v4, 0x0

    const/4 v5, 0x0

    .line 1097
    const/4 v6, 0x0

    int-to-float v7, v13

    .line 1096
    move-object/from16 v0, v17

    invoke-direct {v0, v4, v5, v6, v7}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V

    .line 1098
    .local v17, "translateAnimationY":Landroid/view/animation/TranslateAnimation;
    new-instance v4, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v4}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    move-object/from16 v0, v17

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 1099
    const/4 v4, 0x0

    move-object/from16 v0, v17

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setRepeatCount(I)V

    .line 1100
    const/4 v4, 0x1

    move-object/from16 v0, v16

    invoke-virtual {v0, v4}, Landroid/view/animation/TranslateAnimation;->setFillAfter(Z)V

    .line 1101
    new-instance v15, Landroid/view/animation/AnimationSet;

    const/4 v4, 0x0

    invoke-direct {v15, v4}, Landroid/view/animation/AnimationSet;-><init>(Z)V

    .line 1102
    .local v15, "set":Landroid/view/animation/AnimationSet;
    const/4 v4, 0x0

    invoke-virtual {v15, v4}, Landroid/view/animation/AnimationSet;->setFillAfter(Z)V

    .line 1103
    invoke-virtual {v15, v3}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 1104
    move-object/from16 v0, v17

    invoke-virtual {v15, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 1105
    invoke-virtual/range {v15 .. v16}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 1106
    move-object/from16 v0, p0

    iget v4, v0, Lframent/FramentOrder2;->AnimationDuration:I

    int-to-long v4, v4

    invoke-virtual {v15, v4, v5}, Landroid/view/animation/AnimationSet;->setDuration(J)V

    .line 1107
    move-object/from16 v0, v18

    invoke-virtual {v0, v15}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    .line 1109
    new-instance v4, Lframent/FramentOrder2$5;

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    invoke-direct {v4, v0, v1}, Lframent/FramentOrder2$5;-><init>(Lframent/FramentOrder2;Landroid/view/View;)V

    invoke-virtual {v15, v4}, Landroid/view/animation/AnimationSet;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 1129
    return-void
.end method

.method public static setListViewHeightBasedOnChildren(Landroid/widget/GridView;)V
    .locals 10
    .param p0, "listView"    # Landroid/widget/GridView;
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .prologue
    const/4 v9, 0x0

    const/16 v8, 0xa

    .line 1417
    invoke-virtual {p0}, Landroid/widget/GridView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v2

    .line 1418
    .local v2, "listAdapter":Landroid/widget/ListAdapter;
    if-nez v2, :cond_0

    .line 1442
    :goto_0
    return-void

    .line 1422
    :cond_0
    const/4 v0, 0x2

    .line 1423
    .local v0, "col":I
    const/4 v5, 0x0

    .line 1426
    .local v5, "totalHeight":I
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_1
    invoke-interface {v2}, Landroid/widget/ListAdapter;->getCount()I

    move-result v6

    if-lt v1, v6, :cond_1

    .line 1435
    invoke-virtual {p0}, Landroid/widget/GridView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v4

    .line 1437
    .local v4, "params":Landroid/view/ViewGroup$LayoutParams;
    iput v5, v4, Landroid/view/ViewGroup$LayoutParams;->height:I

    move-object v6, v4

    .line 1439
    check-cast v6, Landroid/view/ViewGroup$MarginLayoutParams;

    invoke-virtual {v6, v8, v8, v8, v8}, Landroid/view/ViewGroup$MarginLayoutParams;->setMargins(IIII)V

    .line 1441
    invoke-virtual {p0, v4}, Landroid/widget/GridView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 1428
    .end local v4    # "params":Landroid/view/ViewGroup$LayoutParams;
    :cond_1
    const/4 v6, 0x0

    invoke-interface {v2, v1, v6, p0}, Landroid/widget/ListAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 1429
    .local v3, "listItem":Landroid/view/View;
    invoke-virtual {v3, v9, v9}, Landroid/view/View;->measure(II)V

    .line 1431
    invoke-virtual {v3}, Landroid/view/View;->getMeasuredHeight()I

    move-result v6

    invoke-virtual {p0}, Landroid/widget/GridView;->getVerticalSpacing()I

    move-result v7

    add-int/2addr v6, v7

    add-int/2addr v5, v6

    .line 1426
    add-int/2addr v1, v0

    goto :goto_1
.end method

.method private setoncliclister()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 487
    iget-object v0, p0, Lframent/FramentOrder2;->rl_shopbox:Landroid/widget/RelativeLayout;

    new-instance v1, Lframent/FramentOrder2$mOnclicliseter;

    invoke-direct {v1, p0, v2}, Lframent/FramentOrder2$mOnclicliseter;-><init>(Lframent/FramentOrder2;Lframent/FramentOrder2$mOnclicliseter;)V

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 488
    iget-object v0, p0, Lframent/FramentOrder2;->ll_pay:Landroid/widget/LinearLayout;

    new-instance v1, Lframent/FramentOrder2$mOnclicliseter;

    invoke-direct {v1, p0, v2}, Lframent/FramentOrder2$mOnclicliseter;-><init>(Lframent/FramentOrder2;Lframent/FramentOrder2$mOnclicliseter;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 489
    iget-object v0, p0, Lframent/FramentOrder2;->close:Landroid/widget/TextView;

    new-instance v1, Lframent/FramentOrder2$mOnclicliseter;

    invoke-direct {v1, p0, v2}, Lframent/FramentOrder2$mOnclicliseter;-><init>(Lframent/FramentOrder2;Lframent/FramentOrder2$mOnclicliseter;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 490
    iget-object v0, p0, Lframent/FramentOrder2;->del:Landroid/widget/TextView;

    new-instance v1, Lframent/FramentOrder2$mOnclicliseter;

    invoke-direct {v1, p0, v2}, Lframent/FramentOrder2$mOnclicliseter;-><init>(Lframent/FramentOrder2;Lframent/FramentOrder2$mOnclicliseter;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 491
    return-void
.end method


# virtual methods
.method public getViewByPosition(ILandroid/widget/GridView;)Landroid/view/View;
    .locals 5
    .param p1, "pos"    # I
    .param p2, "listView"    # Landroid/widget/GridView;

    .prologue
    .line 1030
    invoke-virtual {p2}, Landroid/widget/GridView;->getFirstVisiblePosition()I

    move-result v1

    .line 1032
    .local v1, "firstListItemPosition":I
    invoke-virtual {p2}, Landroid/widget/GridView;->getChildCount()I

    move-result v3

    .line 1031
    add-int/2addr v3, v1

    add-int/lit8 v2, v3, -0x1

    .line 1034
    .local v2, "lastListItemPosition":I
    if-lt p1, v1, :cond_0

    if-le p1, v2, :cond_1

    .line 1036
    :cond_0
    invoke-virtual {p2}, Landroid/widget/GridView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v3

    const/4 v4, 0x0

    invoke-interface {v3, p1, v4, p2}, Landroid/widget/ListAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 1039
    :goto_0
    return-object v3

    .line 1038
    :cond_1
    sub-int v0, p1, v1

    .line 1039
    .local v0, "childIndex":I
    invoke-virtual {p2, v0}, Landroid/widget/GridView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    goto :goto_0
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .locals 3
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .prologue
    .line 1448
    invoke-super {p0, p1, p2, p3}, Landroid/support/v4/app/Fragment;->onActivityResult(IILandroid/content/Intent;)V

    .line 1450
    const/4 v1, 0x1

    if-ne p2, v1, :cond_0

    .line 1451
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lframent/FramentOrder2;->context:Landroid/content/Context;

    const-class v2, Lcom/example/m6wmr/CarOrderActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 1452
    .local v0, "intent":Landroid/content/Intent;
    const-string v1, "shopid"

    iget-object v2, p0, Lframent/FramentOrder2;->shopid:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 1453
    invoke-virtual {p0, v0}, Lframent/FramentOrder2;->startActivity(Landroid/content/Intent;)V

    .line 1457
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_0
    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 5
    .param p1, "inflater"    # Landroid/view/LayoutInflater;
    .param p2, "container"    # Landroid/view/ViewGroup;
    .param p3, "savedInstanceState"    # Landroid/os/Bundle;
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .prologue
    const/4 v3, 0x0

    .line 151
    iput-object p1, p0, Lframent/FramentOrder2;->inflater:Landroid/view/LayoutInflater;

    .line 152
    const v2, 0x7f03004a

    invoke-virtual {p1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lframent/FramentOrder2;->view:Landroid/view/View;

    .line 154
    const v2, 0x7f030043

    invoke-virtual {p1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lframent/FramentOrder2;->contentView:Landroid/view/View;

    .line 155
    invoke-virtual {p0}, Lframent/FramentOrder2;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v2

    iput-object v2, p0, Lframent/FramentOrder2;->context:Landroid/content/Context;

    .line 156
    invoke-direct {p0}, Lframent/FramentOrder2;->getData()V

    .line 157
    invoke-direct {p0}, Lframent/FramentOrder2;->initView()V

    .line 158
    new-instance v2, Ldata/MarketPupCarAdapter;

    iget-object v3, p0, Lframent/FramentOrder2;->context:Landroid/content/Context;

    invoke-direct {p0}, Lframent/FramentOrder2;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v4

    invoke-direct {v2, v3, v4}, Ldata/MarketPupCarAdapter;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v2, p0, Lframent/FramentOrder2;->pupCarAdapter:Ldata/MarketPupCarAdapter;

    .line 159
    iget-object v2, p0, Lframent/FramentOrder2;->list_cart:Landroid/widget/ListView;

    iget-object v3, p0, Lframent/FramentOrder2;->pupCarAdapter:Ldata/MarketPupCarAdapter;

    invoke-virtual {v2, v3}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 161
    invoke-direct {p0}, Lframent/FramentOrder2;->getShopResource()V

    .line 162
    invoke-direct {p0}, Lframent/FramentOrder2;->setoncliclister()V

    .line 164
    new-instance v2, Lframent/FramentOrder2$1;

    invoke-direct {v2, p0}, Lframent/FramentOrder2$1;-><init>(Lframent/FramentOrder2;)V

    sput-object v2, Lframent/FramentOrder2;->handler:Landroid/os/Handler;

    .line 442
    new-instance v2, Ldata/ShoptTypeAdapter2;

    iget-object v3, p0, Lframent/FramentOrder2;->context:Landroid/content/Context;

    iget-object v4, p0, Lframent/FramentOrder2;->goodsstyles:Ljava/util/ArrayList;

    invoke-direct {v2, v3, v4}, Ldata/ShoptTypeAdapter2;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v2, p0, Lframent/FramentOrder2;->shoptTypeAdapter2:Ldata/ShoptTypeAdapter2;

    .line 443
    iget-object v2, p0, Lframent/FramentOrder2;->lv_goodsstyle:Landroid/widget/ListView;

    iget-object v3, p0, Lframent/FramentOrder2;->shoptTypeAdapter2:Ldata/ShoptTypeAdapter2;

    invoke-virtual {v2, v3}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 444
    iget-object v2, p0, Lframent/FramentOrder2;->lv_goodsstyle:Landroid/widget/ListView;

    new-instance v3, Lframent/FramentOrder2$2;

    invoke-direct {v3, p0}, Lframent/FramentOrder2$2;-><init>(Lframent/FramentOrder2;)V

    invoke-virtual {v2, v3}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 476
    iget-object v2, p0, Lframent/FramentOrder2;->context:Landroid/content/Context;

    const-string v3, "pscost"

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 477
    .local v0, "sharedPreferences":Landroid/content/SharedPreferences;
    const-string v2, "ps"

    const-string v3, ""

    invoke-interface {v0, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 478
    .local v1, "uid":Ljava/lang/String;
    iget-object v2, p0, Lframent/FramentOrder2;->tv_ps:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "\u914d\u9001\u8d39 :"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\u5143"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 481
    iget-object v2, p0, Lframent/FramentOrder2;->view:Landroid/view/View;

    return-object v2
.end method

.method public onStart()V
    .locals 2

    .prologue
    .line 1165
    invoke-direct {p0}, Lframent/FramentOrder2;->searchCart()V

    .line 1166
    iget-object v0, p0, Lframent/FramentOrder2;->pupCarAdapter:Ldata/MarketPupCarAdapter;

    invoke-direct {p0}, Lframent/FramentOrder2;->getAllGoodsBeanList()Ljava/util/List;

    move-result-object v1

    invoke-virtual {v0, v1}, Ldata/MarketPupCarAdapter;->setList(Ljava/util/List;)V

    .line 1167
    iget-object v0, p0, Lframent/FramentOrder2;->pupCarAdapter:Ldata/MarketPupCarAdapter;

    invoke-virtual {v0}, Ldata/MarketPupCarAdapter;->notifyDataSetChanged()V

    .line 1168
    iget-object v0, p0, Lframent/FramentOrder2;->adapter:Lframent/FramentOrder2$GoodsAdapter;

    if-eqz v0, :cond_0

    .line 1169
    iget-object v0, p0, Lframent/FramentOrder2;->adapter:Lframent/FramentOrder2$GoodsAdapter;

    invoke-virtual {v0}, Lframent/FramentOrder2$GoodsAdapter;->notifyDataSetChanged()V

    .line 1171
    :cond_0
    invoke-super {p0}, Landroid/support/v4/app/Fragment;->onStart()V

    .line 1172
    return-void
.end method
